package com.input4hua.builder.director;

import com.input4hua.builder.builder.A.A1Builder;
import com.input4hua.builder.builder.A.A2Builder;
import com.input4hua.builder.builder.Builder;
import com.input4hua.builder.product.Product;

/**
 * Created by jiahua.hu on 2019/2/19.
 */
public class ADirector {

    private Builder a1builder = new A1Builder();
    private Builder a2builder = new A2Builder();

    public Product getA1Product() {
        a1builder.doPart();
        return a1builder.buildProduct();
    }

    public Product getA2Product() {
        a2builder.doPart();
        return a2builder.buildProduct();
    }
}
